﻿using System;
using System.Linq;
using System.Linq.Expressions;
using RailNet.Dao.Entity;

namespace RailNet.Dao.Repository
{
    public interface IRuRepository
    {
        IQueryable<Ru> All { get; }
        IQueryable<Ru> AllIncluding(params Expression<Func<Ru, object>>[] includeProperties);
        Ru Find(long id);
        void InsertOrUpdate(Ru ru);
        void Delete(long id);
        void Save();
    }
}